package com.ruicar.afs.cloud.workflow.greatwall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.cloud.workflow.greatwall.entity.AfsGreatWallWorkflowBizData;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface AfsGreatWallWorkflowBizDataMapper extends BaseMapper<AfsGreatWallWorkflowBizData> {
    @Update("update afs_greatwall_workflow_bizdata set flow_status='F' where flow_status='R' and id =${id}")
    void updateToFinish(@Param("id") Long id);

    @Update("delete from afs_greatwall_workflow_bizdata where flow_service_id=#{serviceId} and biz_data_id=#{bizDataId} ")
    int clearFailInfo(@Param("serviceId") String serviceId, @Param("bizDataId") String bizDataId);
}
